<template>
	<view class="content">
		<image class="qr-code" src="@/pageIssue/static/qr-code.jpg" :show-menu-by-longpress="true"></image>

		<div class="desc-list">
			<div class="desc-side">«»</div>
			<div class="desc-center">{{ desc }}</div>
			<div class="desc-side">«»</div>
		</div>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				desc: `当你探索内心深处的时候，塔罗牌为你提供了一扇窗户，让你窥视未来的可能性~\n
					   让我为你解读塔罗的智慧，帮助你找到答案和指引。扫码/长按上方二维码，开始你的心灵之旅！`
			}
		},
		onLoad: function(option) {
			if (!option.params) {
				return
			}
			const params = JSON.parse(decodeURIComponent(option.params));
			console.log("params: ", params);
		},
		methods: {
			onShareAppMessage: function(res) {
			  return {
				title: '塔罗牌在线抽卡',
			  }
			},
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-evenly;
		;
		height: 100vh;
		background-color: #20254c;
	}

	.qr-code {
		/* 1074 × 1455 */
		width: 80vw;
		height: 108.38vw;
		border-radius: 20rpx;
		border: 1px dashed gold;
	}
	
	.desc-list {
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		width: 100%;
		.desc-side {
			width: 160rpx;
			color: #9e9fad;
			text-align: center;
			font-size: 40rpx;
		}
		
		.desc-center {
			height: 100%;
			flex: 1;
			display: flex;
			flex-direction: column;
			justify-content: center;
			color: #ccbd82;
			text-align: center;
			white-space: pre-line;
		}
	}
</style>